#pragma once
#include <map>

#include "mmcogtestmsg.h"

class BDReceiver;
class BDSender;
class BDMessageManager
{
private:
	BDMessageManager();
	~BDMessageManager();

	static BDMessageManager* m_pInstance;

	std::map<ReceiverType, BDReceiver*> m_mapReceiver;

	std::map<SenderType, BDSender*> m_mapSender;

public:

	static BDMessageManager* GetInstance();

	static void Destroy();

	BDReceiver* GetReceiver(ReceiverType type);

	BDSender* GetSender(SenderType type);

	void Start();

	void Stop();
};

